package com.hanthink.system.service.impl.manhour;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hanthink.system.mapper.manhour.TheoryAssistWorkSetMapper;
import com.hanthink.system.domain.manhour.TheoryAssistWorkSet;
import com.hanthink.system.service.manhour.ITheoryAssistWorkSetService;

/**
 * 理论辅助用工设定Service业务层处理
 * 
 * @author hanthink
 * @date 2022-01-04
 */
@Service
public class TheoryAssistWorkSetServiceImpl implements ITheoryAssistWorkSetService 
{
    @Autowired
    private TheoryAssistWorkSetMapper theoryAssistWorkSetMapper;

    /**
     * 查询理论辅助用工设定
     * 
     * @param id 理论辅助用工设定ID
     * @return 理论辅助用工设定
     */
    @Override
    public TheoryAssistWorkSet selectTheoryAssistWorkSetById(Long id)
    {
        return theoryAssistWorkSetMapper.selectTheoryAssistWorkSetById(id);
    }

    /**
     * 查询理论辅助用工设定列表
     * 
     * @param theoryAssistWorkSet 理论辅助用工设定
     * @return 理论辅助用工设定
     */
    @Override
    public List<TheoryAssistWorkSet> selectTheoryAssistWorkSetList(TheoryAssistWorkSet theoryAssistWorkSet)
    {
        return theoryAssistWorkSetMapper.selectTheoryAssistWorkSetList(theoryAssistWorkSet);
    }

    /**
     * 新增理论辅助用工设定
     * 
     * @param theoryAssistWorkSet 理论辅助用工设定
     * @return 结果
     */
    @Override
    public int insertTheoryAssistWorkSet(TheoryAssistWorkSet theoryAssistWorkSet)
    {
        return theoryAssistWorkSetMapper.insertTheoryAssistWorkSet(theoryAssistWorkSet);
    }

    /**
     * 修改理论辅助用工设定
     * 
     * @param theoryAssistWorkSet 理论辅助用工设定
     * @return 结果
     */
    @Override
    public int updateTheoryAssistWorkSet(TheoryAssistWorkSet theoryAssistWorkSet)
    {
        return theoryAssistWorkSetMapper.updateTheoryAssistWorkSet(theoryAssistWorkSet);
    }

    /**
     * 批量删除理论辅助用工设定
     * 
     * @param ids 需要删除的理论辅助用工设定ID
     * @return 结果
     */
    @Override
    public int deleteTheoryAssistWorkSetByIds(Long[] ids)
    {
        return theoryAssistWorkSetMapper.deleteTheoryAssistWorkSetByIds(ids);
    }

    /**
     * 删除理论辅助用工设定信息
     * 
     * @param id 理论辅助用工设定ID
     * @return 结果
     */
    @Override
    public int deleteTheoryAssistWorkSetById(Long id)
    {
        return theoryAssistWorkSetMapper.deleteTheoryAssistWorkSetById(id);
    }
}
